package com.zhen.dao;

import com.zhen.pojo.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    List<Goods> queryAllGoods();
    List<Goods> queryGoodsByName(@Param("name") String name);

    int addGoods(Goods goods);

    int deleteGoodsById(@Param("id") int id);
}
